<template>
  <div>
        <el-input v-model="href"></el-input>
        <mc-mounted @mc-mounted="init"></mc-mounted>
        <el-input v-model="href"></el-input>
       <el-button @click="print">打印</el-button>
       <el-button @click="change">改变</el-button>
  </div>
</template>

<script>
import McMounted from "./components/McMounted";
export default {
    data(){
      return {
        href:"http://www.magicalcoder.com"
      }
    },
    components:{
      McMounted
    },
    methods:{
        init(vueData){
            console.log(this.href)
            console.log("初始化完成")
        },
        print(){
            console.log(this.form)
        },
        change(){
            //this.form.userName = false;
            this.href = "http://www.baidu.com";
        }
    }
}
</script>

<style>

</style>
